<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>接口测试</title>

<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
	$(function() {
		$("#txtBaseUrl").val(getRootPath() + "/");

		$(".horeTr tr").dblclick(function() {
			$("#txtResult").val("");
			var name = $(this).find("td").eq(0).text();
			$("#txtModelName").text(name);
			var url = $(this).find("td").eq(1).text();
			;
			$("#txtUrl").val(url);
		}).hover(function() {
			$(this).addClass("hover"); //鼠标经过添加hover样式
		}, function() {
			$(this).removeClass("hover"); //鼠标离开移除hover样式
		});
	});

	function testAction() {
		var actionUrl = $("#txtBaseUrl").val() + $("#txtUrl").val();
		var jsonParame = $("#txtParam").val();
		$("#txtResult").val("");

		$.ajax({
			type : "POST",
			url : actionUrl,
			data : {
				jsonParam : jsonParame
			},
			dataType : "text",
			success : function(data) {
				$("#txtResult").val(data);
			},
			error : function(data) {
				$("#txtResult").val("错误" + data);
			}
		});
	}

	//js获取项目根路径，如： http://localhost:8090/cutland
	function getRootPath() {
		//获取当前网址，如： http://localhost:8090/cutland/index.jsp
		var curWwwPath = window.document.location.href;
		//获取主机地址之后的目录，如：cutland/index.jsp
		var pathName = window.document.location.pathname;
		var pos = curWwwPath.indexOf(pathName);
		//获取主机地址，如： http://localhost:8090
		var localhostPaht = curWwwPath.substring(0, pos);
		//获取带"/"的项目名，如：/uimcardprj
		var projectName = pathName.substring(0,
				pathName.substr(1).indexOf('/') + 1);
		return (localhostPaht + projectName);
	}
</script>
</head>
<body>
	<style type="text/css">
.hover {
	background-color: #FFF000;
	cursor: pointer;
} /*这里是鼠标经过时的颜色*/
</style>
	<div>
		<div style="float: left">
			<table width="500px">
				<tr>
					<td>项目路径</td>
					<td><input type="text" name="txtBaseUrl" id="txtBaseUrl"
						style="width: 450px;" value="" /></td>
				</tr>
				<tr>
					<td>提交</td>
					<td><input type="text" name="txtUrl" id="txtUrl"
						style="width: 250px; float: left" value="" />
						<div style="float: left" id="txtModelName"></div></td>
				</tr>
				<tr>
					<td>参数jsonParam</td>
					<td><textarea id="txtParam" rows="5" cols="60">{"limit":{"uid":"1" , "systemCode":"05" },"param":{ "wid":"1","page":1,"pageSize":10}}</textarea>
					</td>
				</tr>
				<tr>
					<td>返回值</td>
					<td><textarea id="txtResult" rows="10" cols="60"></textarea></td>
				</tr>
				<tr>
					<td></td>
					<td>
						<div align="right">
							<input type="button" onclick="testAction()" value="提交">
						</div>
					</td>
				</tr>
			</table>
		</div>
		<div style="float: left">
			<table id="commonTable" class="horeTr">
				<tr>
					<td><strong>仁医</strong></td>
					<td></td>
				</tr>
				<tr>
					<td>患者登陆</td>
					<td>getLoginPatient.action</td>
				</tr>
				<tr>
					<td>患者注册</td>
					<td>setRegisterPatient.action</td>
				</tr>
				<tr>
					<td>医生登陆</td>
					<td>getLoginDoctor.action</td>
				</tr>
				<tr>
					<td>医生注册</td>
					<td>setRegisterDoctor.action</td>
				</tr>
				<tr>
					<td>密码修改/忘记密码</td>
					<td>modifyPassword.action</td>
				</tr>
				<tr>
					<td>患者-获取医生列表</td>
					<td>getDoctorList.action</td>
				</tr>
				<tr>
					<td>患者-快速提问</td>
					<td>saveQuestion.action</td>
				</tr>
				<tr>
					<td>患者-获取区列表</td>
					<td>getAreaList.action</td>
				</tr>
				<tr>
					<td>患者-获取医院列表</td>
					<td>getHospitalList.action</td>
				</tr>
				<tr>
					<td>患者-获取推荐医生列表</td>
					<td>getRecommendDoctor.action</td>
				</tr>
				<tr>
					<td>患者-关注医生</td>
					<td>setInterestedDoctor.action</td>
				</tr>
				<tr>
					<td>患者-取消关注医生</td>
					<td>cancelInterestedDoctor.action</td>
				</tr>
				<tr>
					<td>患者-获取关注医生列表</td>
					<td>getInterestedDoctor.action</td>
				</tr>
				<tr>
					<td>患者-获取药品模块列表</td>
					<td>getMedicineModule.action</td>
				</tr>
				<tr>
					<td>患者-获取药品分类列表</td>
					<td>getMedicineType.action</td>
				</tr>
				<tr>
					<td>患者-获取药品列表</td>
					<td>getMedicineList.action</td>
				</tr>
				<tr>
					<td>患者-获取医生详情</td>
					<td>getDoctorDetail.action</td>
				</tr>
				<tr>
					<td>患者-获取医生评价</td>
					<td>getDoctorAppraise.action</td>
				</tr>
				<tr>
					<td>患者-获取已关闭咨询列表</td>
					<td>getRecordList.action</td>
				</tr>
				<tr>
					<td>患者-对已关闭咨询进行评价</td>
					<td>setRecordAppraise.action</td>
				</tr>
				<tr>
					<td>患者-获取已关闭咨询详情</td>
					<td>getRecordDetail.action</td>
				</tr>
				<tr>
					<td>患者-查看当前对话是否关闭</td>
					<td>getRecordState.action</td>
				</tr>
				<tr>
					<td>患者-支付完开启对话</td>
					<td>setRecordState.action</td>
				</tr>
				<tr>
					<td>患者-新增收货地址</td>
					<td>newShoppingAddress.action</td>
				</tr>
				<tr>
					<td>患者-编辑收货地址</td>
					<td>editShoppingAddress.action</td>
				</tr>
				<tr>
					<td>患者-获取收货地址列表</td>
					<td>getShoppingAddress.action</td>
				</tr>
				<tr>
					<td>患者-删除收货地址</td>
					<td>delShoppingAddress.action</td>
				</tr>
				<tr>
					<td>患者-新增购物车物品</td>
					<td>newShoppingCart.action</td>
				</tr>
				<tr>
					<td>患者-编辑购物车物品</td>
					<td>editShoppingCart.action</td>
				</tr>
				<tr>
					<td>患者-获取购物车物品列表</td>
					<td>getShoppingCart.action</td>
				</tr>
				<tr>
					<td>患者-删除购物车物品</td>
					<td>delShoppingCart.action</td>
				</tr>
				<tr>
					<td>患者-新增药品订单</td>
					<td>newMedicineOrder.action</td>
				</tr>
				<tr>
					<td>患者-获取药品订单列表</td>
					<td>getMedicineOrder.action</td>
				</tr>
				<tr>
					<td>患者-获取药品订单列表详情</td>
					<td>getMedicineOrderDetail.action</td>
				</tr>
				<tr>
					<td>患者-删除药品订单</td>
					<td>delMedicineOrder.action</td>
				</tr>
				<tr>
					<td>患者-获取药品详情</td>
					<td>getMedicineDetail.action</td>
				</tr>
				<tr>
					<td>患者-获取药品评价</td>
					<td>getMedicineAppraise.action</td>
				</tr>
				<tr>
					<td>患者-对药品订单进行评价</td>
					<td>setMedicineOrderAppraise.action</td>
				</tr>
				<tr>
					<td>患者-更新药品订单状态</td>
					<td>setMedicineOrderStatus.action</td>
				</tr>
				<tr>
					<td>患者-反馈意见</td>
					<td>setFeedbackInfo.action</td>
				</tr>
				<tr>
					<td>患者-药品关键字结果查询</td>
					<td>queryMedicineKeyword.action</td>
				</tr>
				<tr>
					<td>患者-药品查询</td>
					<td>queryMedicine.action</td>
				</tr>
				<tr>
					<td>患者-查看物流信息</td>
					<td>getExpressInfo.action</td>
				</tr>
				<tr>
					<td>患者-获取药品图文详情</td>
					<td>getMedicineITDetail.action</td>
				</tr>
				<tr>
					<td>患者-查找医生</td>
					<td>queryDoctorList.action</td>
				</tr>
				<tr>
					<td>患者-新增药品订单医生处方推荐</td>
					<td>newMedicineOrderRecipel.action</td>
				</tr>
				<tr>
					<td>获取账户余额</td>
					<td>getAccount.action</td>
				</tr>
				<tr>
					<td>充值账户</td>
					<td>recharge.action</td>
				</tr>
				<tr>
					<td>账户扣款</td>
					<td>costAccount.action</td>
				</tr>
				<tr>
					<td>获取病人用户信息</td>
					<td>getUserPatient.action</td>
				</tr>
				 <tr>
					<td>获取病人用户信息</td>
					<td>getUserPatientByChatQQ.action</td>
				</tr>
				<tr>
					<td>更新病人用户信息</td>
					<td>updateUserPatient.action</td>
				</tr>

				<tr>
					<td>医生-获取快速提问列表</td>
					<td>getQuestionList.action</td>
				</tr>
				<tr>
					<td>医生-抢答问题</td>
					<td>dealQuestion.action</td>
				</tr>
				<tr>
					<td>医生-服务价格设置</td>
					<td>setServiceFee.action</td>
				</tr>
				<tr>
					<td>医生-获取我的诊所信息</td>
					<td>getClinicInfo.action</td>
				</tr>
				<tr>
					<td>医生-关闭当前对话</td>
					<td>closeRecord.action</td>
				</tr>
				<tr>
					<td>医生-查看当前对话是否关闭</td>
					<td>getDoctorRecordState.action</td>
				</tr>
				<tr>
					<td>医生-获取已关闭咨询列表</td>
					<td>getDoctorRecordList.action</td>
				</tr>
				<tr>
					<td>医生-获取已关闭咨询详情</td>
					<td>getDoctorRecordDetail.action</td>
				</tr>
				<tr>
					<td>医生-获取粉丝</td>
					<td>getFans.action</td>
				</tr>
				<tr>
					<td>医生-获取咨询订单</td>
					<td>getRecordOrder.action</td>
				</tr>
				<tr>
					<td>医生-获取诊所详情</td>
					<td>getClinicDetail.action</td>
				</tr>
				<tr>
					<td>医生-更新诊所详情</td>
					<td>updateClinicDetail.action</td>
				</tr>
				<tr>
					<td>医生-获取结算信息</td>
					<td>getSettlement.action</td>
				</tr>
				<tr>
					<td>医生-提交结算信息</td>
					<td>submitSettlement.action</td>
				</tr>
				<tr>
					<td>医生-更新证件图片地址</td>
					<td>setCredUrl.action</td>
				</tr>
				<tr>
					<td>医生-获取证件图片地址</td>
					<td>getCredUrl.action</td>
				</tr>
				<tr>
					<td>医生-更新银行卡信息</td>
					<td>updateBankCard.action</td>
				</tr>
				<tr>
					<td>医生-获取银行卡信息</td>
					<td>getBankCard.action</td>
				</tr>
				<tr>
					<td>医生-获取药品列表</td>
					<td>getDoctorMedicineList.action</td>
				</tr>
				<tr>
					<td>医生-药品查询</td>
					<td>queryDoctorMedicine.action</td>
				</tr>
				<tr>
					<td>医生-新增处方</td>
					<td>newRecipel.action</td>
				</tr>
				<tr>
					<td>医生-获取处方列表</td>
					<td>getRecipelList.action</td>
				</tr>
				<tr>
					<td>医生-获取处方详情</td>
					<td>getRecipelDetail.action</td>
				</tr>
				<tr>
					<td>医生-删除处方</td>
					<td>delRecipel.action</td>
				</tr>
				<tr>
					<td>医生-编辑处方</td>
					<td>editRecipel.action</td>
				</tr>
				<tr>
					<td>医生-获取处方整剂用法</td>
					<td>getRecipelUsage.action</td>
				</tr>
				<tr>
					<td>医生-获取处方药品用法</td>
					<td>getRecipelMedicineUsage.action</td>
				</tr>
				<tr>
					<td>医生-获取处方模板类型列表</td>
					<td>getRecipelType.action</td>
				</tr>
				<tr>
					<td>医生-获取处方模板详情</td>
					<td>RecipelTempletDetail.action</td>
				</tr>
				<tr>
					<td>获取体检项目分类列表</td>
					<td>getJcflList.action</td>
				</tr>
				<tr>
					<td>获取门诊未付款列表</td>
					<td>getWsfList.action</td>
				</tr>
				<tr>
					<td>获取门诊已付款列表</td>
					<td>getYsfList.action</td>
				</tr>
				<tr>
					<td>查看已购买体检项目</td>
					<td>getJcxmByBridList.action</td>
				</tr>
				<tr>
					<td>查看已购买体检项目明细</td>
					<td>getJcxmmxByBrid.action</td>
				</tr>
				<tr>
					<td>查看体检结果文字和图片</td>
					<td>getJcjgByBLH.action</td>
				</tr>
				<tr>
					<td>获取处理和未处理病人数</td>
					<td>getHandlePatientStatistics.action</td>
				</tr>
				<tr>
					<td>获取未处理病人列表</td>
					<td>getUnHandlePatientList.action</td>
				</tr>
				<tr>
					<td>获取处理病人列表</td>
					<td>getHandlePatientList.action</td>
				</tr>
				 <tr>
					<td>获取诊金收入列表</td>
					<td>getDoctorFeeStatisticsList.action</td>
				</tr>
				 <tr>
					<td>获取图文收入列表</td>
					<td>getDoctorRecordStatisticsList.action</td>
				</tr>
				 <tr>
					<td>生成检查订单</td>
					<td>addJcxmOrder.action</td>
				</tr>
				 <tr>
					<td>查找字典信息</td>
					<td>queryDictionary.action</td>
				</tr>
			</table>

			<table>
				<tr>
					<td><a href="uploadImage.jsp" target="_blank">图片上传</a></td>
					<td></td>
				</tr>
			</table>
		</div>
	</div>
</body>
</html>